<?php

if (!defined('BASEPATH'))
	exit('No direct script access allowed');
/**
 * CodeIgniter
 *
 * An open source application development framework for PHP 5.1.6 or newer
 *
 * @package		CodeIgniter
 * @author		ExpressionEngine Dev Team
 * @copyright	Copyright (c) 2008 - 2011, EllisLab, Inc.
 * @license		http://codeigniter.com/user_guide/license.html
 * @link		http://codeigniter.com
 * @since		Version 1.0
 * @filesource
 */
// ------------------------------------------------------------------------

/**
 * CodeIgniter Model Class
 *
 * @package		CodeIgniter
 * @subpackage	Libraries
 * @category	Libraries
 * @author		ExpressionEngine Dev Team
 * @link		http://codeigniter.com/user_guide/libraries/config.html
 */
class CI_Model {

	protected $type = '';
	protected $dbkey = '';
	protected $sec = '';

	/**
	 * Constructor
	 *
	 * @access public
	 */
	function __construct($db_config) {
		$db_config['type'] = isset($db_config['type']) ? $db_config['type'] : $this->type;
		$db_config['dbkey'] = isset($db_config['dbkey']) ? $db_config['dbkey'] : $this->dbkey;
		$db_config['sec'] = $this->sec = isset($db_config['sec']) ? $db_config['sec'] : '';

		$this->db = get_instance()->load->db($db_config);
		log_message('debug', "Model Class Initialized");
	}

	/**
	 * __get
	 *
	 * Allows models to access CI's loaded classes using the same
	 * syntax as controllers.
	 *
	 * @param	string
	 * @access private
	 */
}

// END Model Class

/* End of file Model.php */
/* Location: ./system/core/Model.php */